package com.hll.client.controller;

import com.hll.client.feign.UserFeign;
import com.hll.client.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: Mr.Hu
 * @create: 2021-03-15 11:13
 */
@RestController
@RequestMapping("/client")
public class Controller {
  @Autowired private UserFeign userFeign;

  @GetMapping("all")
  public List<User> findAll() {
    return userFeign.findAll();
  }
}
